package com.longbo.demostudy.portal.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/")
public class MapTestController {
    @RequestMapping("maptest")
    public Object testMap(@RequestParam Map params){
        System.out.println(params);
        System.out.println("params.size()>>"+params.size());
        System.out.println("MapTestController.testMap");
        System.out.println(params.get("name"));
        return "成功!";
    }

}
